import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:fluttermodule/provide/customer_detail.dart';
import 'package:fluttermodule/provide/customer_info_provide.dart';
import 'package:fluttermodule/provide/enterprise_provide.dart';


import 'package:provide/provide.dart';
import './provide/pdt_detail.dart';
import 'customerDetail/customer_detail.dart';
import 'enterprisecenter/enterprise.dart';
import 'package:fluttermodule/enterprisecenter/enterprise.dart';
import 'package:fluttermodule/provide/clients.dart';

void main() {
  var customerDetailProvide = CustomerDetailProvide();
  var customerInfoProvide = CustomerInfoProvide();
  var enterpriseInfoProvide = EnterpriseInfoProvide();
  var childCategory = PdtDetailProvide();
  var providers = Providers();
  var clientsProvide = ClientsProvide();
  providers..provide(Provider<PdtDetailProvide>.value(childCategory));
  providers..provide(Provider<CustomerInfoProvide>.value(customerInfoProvide));
  providers..provide(Provider<CustomerDetailProvide>.value(customerDetailProvide));
  providers..provide(Provider<EnterpriseInfoProvide>.value(enterpriseInfoProvide));
  providers..provide(Provider<ClientsProvide>.value(clientsProvide));

  GlobalKey<NavigatorState> navKey = GlobalKey<NavigatorState>();
  runApp(ProviderNode(child:MyApp(),providers:providers));
  SystemUiOverlayStyle systemUiOverlayStyle =
  SystemUiOverlayStyle(statusBarColor: Colors.transparent);
  SystemChrome.setSystemUIOverlayStyle(systemUiOverlayStyle);

}
class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
        child: MaterialApp(
            title: '安利云购',
            debugShowCheckedModeBanner: false,
            home: Enterprise()
        )
    );
  }
}

